package cn.org.timespace.ons.service.policy.impl;

import java.util.List;

import cn.org.timespace.ons.action.policy.MachinesMomModel;
import cn.org.timespace.ons.dao.policy.MachinesMomDao;
import cn.org.timespace.ons.service.policy.MachinesMomService;
import cn.org.timespace.ons.util.pager.Pager;
import cn.org.timespace.ons.vo.base.MachinesMom;

public class MachinesMomServiceImpl implements MachinesMomService {

	private MachinesMomDao machinesMomDao;
	
	public MachinesMomDao getMachinesMomDao() {
		return machinesMomDao;
	}

	public void setMachinesMomDao(MachinesMomDao machinesMomDao) {
		this.machinesMomDao = machinesMomDao;
	}

	@Override
	public void delete(MachinesMom instance) {
		machinesMomDao.delete(instance);
	}

	@Override
	public List<MachinesMom> findByCondition(MachinesMomModel model) {
		return machinesMomDao.findByCondition(model);
	}

	@Override
	public List<Object> findByCondition(MachinesMomModel model, Pager p) {
		return machinesMomDao.findByCondition(model, p);
	}

	@Override
	public MachinesMom findById(String id) {
		return machinesMomDao.findById(id);
	}

	@Override
	public void inMM(MachinesMom instance) {
		machinesMomDao.save(instance);
	}
	
	@Override
	public MachinesMom findByMsId(String msId){
		return machinesMomDao.findByMsId(msId);
	}

	@Override
	public void update(MachinesMom instance) {
		machinesMomDao.update(instance);
	}

	
}

